package jtokyotyrant;

import java.util.Map;

public interface RDBTBL extends RDB {
	/** index type: lexical string */
	int ITLEXICAL  	=  	0;
	/** index type: decimal string */
	int ITDECIMAL 	= 	1;
	/** index type: token inverted index */
	int ITTOKEN 	= 	2;
	/** index type: q-gram inverted index */
	int ITQGRAM 	= 	3;
	/** index type: optimize */
	int ITOPT 	= 	9998;
	/** index type: void */
	int ITVOID 	= 	9999;
	/** index type: keep existing index */
	int ITKEEP 	= 	1 << 24;

	@Override boolean close();
	boolean put(byte[] pkey, Map<String, byte[]> cols);
	boolean put(String pkey, Map<String, String> cols);
	boolean putkeep(byte[] pkey, Map<String, byte[]> cols);
	boolean putkeep(String pkey, Map<String, String> cols);
	boolean putcat(byte[] pkey, Map<String, byte[]> cols);
	boolean putcat(String pkey, Map<String, String> cols);
	@Override boolean out(byte[] pkey);
	@Override boolean out(String pkey);
	Map<String, byte[]> getCols(byte[] pkey);
	Map<String, String> getCols(String pkey);
	boolean setindex(String name, int type);
	long genuid();
	
	RDBQRY qrynew();
	boolean qrydel(RDBQRY qry);
}
